package com.example.questionnaire.service;

import com.example.questionnaire.pojo.DAO.UserAnswerDataEncapsulationDAO;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
import java.util.List;

public interface UserAnswerService {
    boolean saveUserAnswerData(String formid, String answerSource, String ip, String phone, String openid, String result,int score);

    List<UserAnswerDataEncapsulationDAO> statistics(String formid) throws IOException;

    Object  limitValidation(String formid, String ip, String phone, String openid, int type) throws ParseException;

    List<Object> getStatement(String formid) throws InvocationTargetException, IllegalAccessException;
}
